import request from '@/utils/request'

export  default {
  pageListDriverRecordCondition(current,limit,driverRecordQuery){
    return request({
      url: `/driverRecord/pageListDriverRecord/${current}/${limit}`,
      method: 'post',
      data: driverRecordQuery,
    })
  },

  saveDriver(driver){
    return request({
      url:`/driver/saveDriver`,
      method:'post',
      data:driver,
      params: {token},
    })
  },
  findDriverById(id){
    return request({
      url:`/driver/findDriverById/${id}`,
      method:'get',
    })
  },
  updateDriver(driver){
    return request({
      url:`/driver/updateDriver`,
        method: 'post',
        data:driver,
    })
  },

  deleteDriverRecord(ids){
    return request({
      url:`/driverRecord/deleteDriverRecordByIds/ ${ids}`,
      method: 'post',
    })
  },

  getDept(){
    return request({
      url:`/driver/getDeptById/1`,
      method:'get',
    })
  }






}
